<ui-select ng-model="model[options.key]" theme="bootstrap" ng-required="{{to.required}}"
           ng-change="to['onChange'](model[options.key], options, this, $event ,model);"
           ng-disabled="{{to.disabled}}" reset-search-input="false" multiple>
    <ui-select-match placeholder="{{to.placeholder}}">
        {{$item[to.labelProp || 'name']}}
    </ui-select-match>
    <ui-select-choices uiDisableChoice="option.disabled" repeat="option[to.valueProp || 'value']||option as option in to.options | filter: $select.search" refresh="to.refresh($select.search, options)" refresh-delay="{{to.refreshDelay}}">
    <div ng-bind-html="option[to.labelProp || 'name'] | highlight: $select.search"></div> </ui-select-choices>
</ui-select>

 


